package com.int_tech.user.dao;

import com.int_tech.user.entity.Client;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liubch on 2017/10/6.
 */
public interface ClientDao extends JpaRepository<Client,Integer> {
    Client findByNameAndLegalPerson(String name, String legalPerson);
    Page<Client> findByIsDel(Pageable pageable,int isDel);
    List<Client> findByIsDel(int isDel);

    Client findByName(String clientName);

    List<Client> findById(int clientId);

    Client findClientById(int i);
}
